-- GENERATED SPELL FOR [Edana Hatetalon] --


function spell0_8075(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(12058,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8075', 3000, 1)
end

function spell1_8075(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8075', 3000, 1)
end

function spell2_8075(pUnit, Event) --@Lightning Cloud,n/a--
pUnit:FullCastSpellOnTarget(8293,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8075', 17500, 1)
end

function Sorts_8075(pUnit, Event)
local choix_sorts_8075 = math.random(0, 2)
if choix_sorts_8075 == 0 then
pUnit:RegisterEvent('spell0_8075', 1, 1)
end
if choix_sorts_8075 == 1 then
pUnit:RegisterEvent('spell1_8075', 1, 1)
end
if choix_sorts_8075 == 2 then
pUnit:RegisterEvent('spell2_8075', 1, 1)
end
end

function mob8075_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8075', math.random(1500, 3000), 1)
end

function mob8075_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8075_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8075_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8075, 1, 'mob8075_Action')
RegisterUnitEvent(8075, 2, 'mob8075_Leave')
RegisterUnitEvent(8075, 3, 'mob8075_Kill')
RegisterUnitEvent(8075, 4, 'mob8075_Die')
